package e2q.portal.domain.uPortal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * UpUserUaMap entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_user_ua_map")
@IdClass(e2q.portal.domain.uPortal.UpUserUaMapId.class)
public class UpUserUaMap implements java.io.Serializable {

	// private Department department;
	@Id
	@Column(name = "USER_ID")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer userId;
	@Id
	@Column(name = "USER_AGENT")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private String userAgent;
	@Id
	@Column(name = "PROFILE_ID")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer profileId;

	// Constructors

	/** default constructor */
	public UpUserUaMap() {
	}

	/** full constructor */
	public UpUserUaMap(Integer userId, String userAgent, Integer profileId) {
		this.userId = userId;
		this.userAgent = userAgent;
		this.profileId = profileId;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserAgent() {
		return this.userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

	public Integer getProfileId() {
		return this.profileId;
	}

	public void setProfileId(Integer profileId) {
		this.profileId = profileId;
	}
}